import request from '@/utils/request';

/**
 * 得到保存绑定用户二维码的ticket
 */
export async function getUserLoginTicket(params) {
  const res = await request.get('/gzh/getUserLoginTicket', { params });
  if (res.data.code === 0) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.message));
}
